package com.zz.parkingsystem.service.impl;

import com.zz.parkingsystem.entity.Inspector;
import com.zz.parkingsystem.mapper.InspectorMapper;
import com.zz.parkingsystem.service.Inspector_SectionService;
import com.zz.parkingsystem.vo.Inspector_SectionVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ：zzz
 * @date ：Created in 2022/8/30 15:18
 * @description：aaa
 */
@Service
public class Inspector_SectionServiceImpl implements Inspector_SectionService {
    @Resource
    private InspectorMapper inspectorMapper;

    @Override
    public List<Inspector_SectionVO> getpark_photograph(Long id) {
        return inspectorMapper.getpark_photograph(id);
    }

    @Override
    public Inspector_SectionVO getweekday_amount(String oiId) {
        return inspectorMapper.getweekday_amount(oiId);
    }

    @Override
    public Inspector_SectionVO getweekend_amount(String oiId) {
        return inspectorMapper.getweekend_amount(oiId);
    }

    @Override
    public  List getLicensePlateCheckOrder( String carLicensePlate) {
        return inspectorMapper.getLicensePlateCheckOrder(carLicensePlate);
    }

    @Override
    public List getorder(Long id) {
        return inspectorMapper.getorder(id);
    }

    @Override
    public List getexcOrder(Long id) {
        return inspectorMapper.getexcOrder(id);
    }

    //根据id查询巡查员所管理的街道
    @Override
    public Inspector_SectionVO inspector_section(Long id) {
        return inspectorMapper.inspector_section(id);
    }
    //查询街道中生成订单中车辆为空的订单数量
    @Override
    public List<Inspector_SectionVO> getspace_UnknownCar(Long id) {
        return inspectorMapper.getspace_UnknownCar(id);
    }
    //查询街道的总车位
    @Override
    public Long getspace_count(Long id) {
        return inspectorMapper.getspace_count(id);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return inspectorMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Inspector record) {
        return inspectorMapper.insert(record);
    }

    @Override
    public int insertSelective(Inspector record) {
        return inspectorMapper.insertSelective(record);
    }

    @Override
    public Inspector selectByPrimaryKey(Long id) {
        return inspectorMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Inspector record) {
        return inspectorMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Inspector record) {
        return inspectorMapper.updateByPrimaryKey(record);
    }

}
